package com.woniu.service.backpage;


import com.woniu.entity.Goods;
import com.woniu.entity.RushPurchase;
import com.woniu.util.RequestParams;
import com.woniu.util.ResData;

import java.util.List;

public interface IGoodsService {

    ResData<?> findGoodsByConditions(RequestParams<Goods> requestParams);

    ResData<?> deleteGoods(RequestParams<Goods> requestParams);

    ResData<?> insertGoods(Goods goods);

    ResData<?> updateRushPurchaseStatus(RushPurchase rushPurchase);

    ResData<?> updateGoods(Goods goods);

    ResData<?> findGoodsByName(String name);

    ResData<?> insertRushPurchase(RushPurchase rushPurchase);

    ResData<?> batchInsertGoodsImage(Integer goodsId, List<Integer> tagIds);
}
